@charset "UTF-8";

/**
 * @infos  ：二级菜单实现
 * @author ：李鸿耀
 * @date   ：2017/11/16
 * @version：v1.0
 */


/*
@infos：初始化样式
-----------------------------------------------------------*/
a  { text-decoration: none; }
ul { list-style: none; padding: 0;}

header, .content {
    width: 90%; min-width: 1100px;
    margin: 0 auto;
}

/*
@infos：菜单
-----------------------------------------------------------*/
.menu-list {
    margin: 50px auto;
    text-align: center;
    font-size: 0;
}
.menu-list > li:first-child {
    border-top-left-radius: 5px;
}
.menu-list > li:last-child {
    border-top-right-radius: 5px;
}

.menu-list li {
    box-sizing: border-box;
    width:  160px;
    height: 54px;
    background: #0C0000;
    border-top: 2px solid #303030;
    border-bottom: 2px solid #181818;

    text-align: center;
    line-height: 54px;
}
.menu-list > li {
    position: relative;
    display: inline-block;
}

.menu-list a {
    display: inline-block;
    box-sizing: border-box;
    width:  100%;
    height: 100%;
    border-top-left-radius: 5px;
    border-left: 3px solid transparent;


    color: #808080;
    font-size: 18px;
    letter-spacing: 1px;
}


.submenu-list {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;

    transform-style: preserve-3d;
    perspective: 250px;
}

.submenu-list > li {
    border-left: 3px solid transparent;
    opacity: 0;

    -webkit-transform: rotateY(90deg);
    -moz-transform: rotateY(90deg);
    -ms-transform: rotateY(90deg);
    -o-transform: rotateY(90deg);
    transform: rotateY(90deg);

    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -ms-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
}

.submenu-list > li:nth-child(1) {
    transition-delay: 0s;
}
.submenu-list > li:nth-child(2) {
    transition-delay: .15s;
}
.submenu-list > li:nth-child(3) {
    transition-delay: .3s;
}
.submenu-list > li:nth-child(4) {
    transition-delay: .45s;
}
.submenu-list > li:nth-child(5) {
    transition-delay: .6s;
}


/*
@infos：菜单交互效果
-----------------------------------------------------------*/

.menu-list > li:hover {
    background: #1c1c1c;
    border-top-color: #1B1B1B;
    border-bottom-color: #222222;

}

.menu-list > li:hover > a {
    color: #C4302B;
    border-left-color: #C4302B;
}

.submenu-list > li:hover {
    border-top-color: #1c1c1c;
    background: #1c1c1c;
    border-left-color: #808080;
}

.submenu-list > li:hover > a {
    color: #fff;
}

.menu-list > li:hover .submenu-list > li {

    opacity: 1;

    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

/*
@infos：内容
-----------------------------------------------------------*/
.content {
    height: 500px;
    background: #d3d3d3;
    border-radius: 5px;
}











